{yun:}include file="$comstyle/header.htm"{/yun}
<div class="w1000">
<div class="admin_mainbody"> {yun:}include file="$comstyle/left.htm"{/yun} 
  <script type="text/javascript" language="javascript">
function unselectall(){
	if(document.getElementById('chkAll').checked){
		document.getElementById('chkAll').checked = document.getElementById('chkAll').checked&0;
	}
}
function CheckAll(form){
	for (var i=0;i<form.elements.length;i++){
	var e = form.elements[i];
	if (e.Name != 'chkAll'&&e.disabled==false)
	e.checked = form.chkAll.checked;
	}
}
</script>
  <div class=right_box>
    <div class=admincont_box >
      <div class="com_tit"><span class="com_tit_span">系统消息</span></div>
      <div class="com_body">
        <iframe id="supportiframe"  name="supportiframe" onload="returnmessage('supportiframe');" style="display:none"></iframe>
        <form action="index.php?c=sysnews&act=del" name="myform" method="post" target="supportiframe" id='myform'>
          <div class='admin_note2'>
            <table class="com_table">
             {yun:}if $rows{/yun}
              <tr>
               <th>
                <label for="chkall"><input type="checkbox" id='chkAll'  onclick='CheckAll(this.form)' style=" margin-top:9px;"/></label>
                </th>
                <th>编号</th>
                 <th>内容</th> 
                 <th>时间</th> 
                 <th width="160"> 操作</th> 
              </tr>
              {yun:}/if{/yun}
              {yun:}foreach from=$rows item=item{/yun}
              <tr> 
              <td align="center">
              <input type="checkbox" value="{yun:}$item.id{/yun}"  name='del[]' onclick='unselectall()' rel="del_chk" />
              </td>
              <td  align="center">{yun:}$item.id{/yun}</td> 
              <td align="center" {yun:}if $item.remind_status==0{/yun}style="font-weight:bold"{yun:}/if{/yun}>{yun:}$item.content|mb_substr:0:50:'utf-8'{/yun}</td> 
              <td align="center">{yun:}$item.ctime|date_format:"%Y-%m-%d %H:%M"{/yun}</td> 
              <td align="center"> 
			   <a href="javascript:void(0)" onclick="showsys('{yun:}$item.content_all{/yun}','{yun:}$item.id{/yun}','{yun:}$item.ctime|date_format:"%Y-%m-%d %H:%M"{/yun}'); " class=" com_bth cblue"> 查看</a>
              <a href="javascript:void(0)" onclick="layer_del('确定要删除？', 'index.php?c=sysnews&act=del&id={yun:}$item.id{/yun}'); " class=" com_bth cblue"> 删除</a> </td> </tr>
              {yun:}foreachelse{/yun}
               <tr>
                  <td colspan="5" class="table_end">
              <div class="msg_no">暂无信息！</div>
                </td></tr>
              {yun:}/foreach{/yun} 
            {yun:}if $rows{/yun}
             <tr>
                  <td colspan="5" class="table_end">
            <div class="com_Release_job_bot mt20"><span class="com_Release_job_qx">
                    <input id='checkAll'  type="checkbox" onclick='m_checkAll(this.form)' class="com_Release_job_qx_check">
                    全选</span>
              <input type="button" name="delsub" class='c_btn_02' value="删除所选" onclick="return really('del[]');"/>
            </div>
            <div class="clear"></div>
            <div class="diggg">{yun:}$pagenav{/yun}</div>
            </td></tr>
            {yun:}/if{/yun} </table>
            </div>
        </form>
      </div>
    </div>
  </div>
</div>
</div>
<div id="show" style="display:none;width:100%;">
	<div class="sys_tm">
	<p><i>时间：</i><span id="systime"></span></p>
	<p><i>内容：</i><span id="sysshow"></span></p>
	</div>
	<div class="sys_bot" style="padding-bottom:20px;">
	<a class="sys_bot_del" href="javascript:void(0)" id="delsys"> 删除</a><a class="sys_bot_qx" href="javascript:void(0)" onclick="window.location.reload();" class="cblue">关闭</a>
	</div>
</div>
<style>.layui-layer-setwin{display:none}</style>
{yun:}include file="$comstyle/footer.htm"{/yun}